package com.wuzao.OrderPattern.second.application.command;

import com.wuzao.OrderPattern.second.application.electricAppliance.Light;
import com.wuzao.OrderPattern.second.base.Command;

/**
 * 开灯命令
 */
public class LightOnCommand implements Command {

    Light light;

    public LightOnCommand(Light light){
        this.light = light;
    }
    @Override
    public void execute() {
        light.on();
    }
}
